<?php /* Smarty version 2.6.26, created on 2014-10-24 13:13:07
         compiled from edit.html */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>编辑</title>
	 <script charset="utf-8" src="<?php echo @__ROOT__; ?>
/Blog/Admin/Org/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="<?php echo @__ROOT__; ?>
/Blog/Admin/Org/kindeditor/lang/zh_CN.js"></script>
	<script type="text/javascript">
	  KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
	</script>
	<style type="text/css">
*{padding: 0; margin: 0;}
table{ width: 100%;border-top: 1px solid #aaa;border-left: 1px solid #aaa;}
td{ border-bottom: 1px solid #aaa;border-right: 1px solid #aaa;}

	</style>
</head>
<body>
 <form action="" method="post" enctype="multipart/form-data">
  <input type="hidden" name="bid" value="<?php echo $this->_tpl_vars['filed']['bid']; ?>
">
 	<table cellspacing="0">
 	 <tr>
 	 	<td>标题</td>
 	 	<td>
 	 	  <input type="title" name="title" value="<?php echo $this->_tpl_vars['filed']['title']; ?>
">
 	 	</td>
 	 </tr>
 	 <tr>
 	 	<td>栏目</td>
 	 	<td>
 	 	
 	 		<select name="cid" id="" >
 	 		<?php unset($this->_sections['c']);
$this->_sections['c']['loop'] = is_array($_loop=$this->_tpl_vars['categoryDate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['c']['name'] = 'c';
$this->_sections['c']['show'] = true;
$this->_sections['c']['max'] = $this->_sections['c']['loop'];
$this->_sections['c']['step'] = 1;
$this->_sections['c']['start'] = $this->_sections['c']['step'] > 0 ? 0 : $this->_sections['c']['loop']-1;
if ($this->_sections['c']['show']) {
    $this->_sections['c']['total'] = $this->_sections['c']['loop'];
    if ($this->_sections['c']['total'] == 0)
        $this->_sections['c']['show'] = false;
} else
    $this->_sections['c']['total'] = 0;
if ($this->_sections['c']['show']):

            for ($this->_sections['c']['index'] = $this->_sections['c']['start'], $this->_sections['c']['iteration'] = 1;
                 $this->_sections['c']['iteration'] <= $this->_sections['c']['total'];
                 $this->_sections['c']['index'] += $this->_sections['c']['step'], $this->_sections['c']['iteration']++):
$this->_sections['c']['rownum'] = $this->_sections['c']['iteration'];
$this->_sections['c']['index_prev'] = $this->_sections['c']['index'] - $this->_sections['c']['step'];
$this->_sections['c']['index_next'] = $this->_sections['c']['index'] + $this->_sections['c']['step'];
$this->_sections['c']['first']      = ($this->_sections['c']['iteration'] == 1);
$this->_sections['c']['last']       = ($this->_sections['c']['iteration'] == $this->_sections['c']['total']);
?>
 	 			<option value="<?php echo $this->_tpl_vars['categoryDate'][$this->_sections['c']['index']]['cid']; ?>
"<?php echo $this->_tpl_vars['categoryDate'][$this->_sections['c']['index']]['selected']; ?>
>
 	 				<?php echo $this->_tpl_vars['categoryDate'][$this->_sections['c']['index']]['catname']; ?>

 	 			</option>
 	 		</select>
 	 	<?php endfor; endif; ?>
 	 	</td>
 	 </tr>
 	 <tr>
 	 	<td>缩略图</td>
 	 	<td>
 	 	   <input type="file" name="thumb">
 	 	   <input type="hidden" name="thumb" value="<?php echo $this->_tpl_vars['filed']['thumb']; ?>
">
 	 	</td>
 	 </tr>
 		<tr>
 			<td>正文</td>
 			<td><textarea name="content" id="editor_id"><?php echo $this->_tpl_vars['field']['content']; ?>
</textarea></td>
 		</tr>
 		<tr>
 			<td>点击数</td>
 			<td><input type="title" name="click" value="<?php echo $this->_tpl_vars['filed']['click']; ?>
"></td>
 		</tr>
 		<tr>
 			<td colspan="2"><input type="submit" value="发表"></td>
 		</tr>
 	</table>
 </form>
</body>
</html>